package com.tang.algorithm.swordFingerOffer;

import java.util.Arrays;

/**
 * @author tlm
 * @version 1.0
 * @date 2020/5/12 20:33
 * 最小的k个数
 * https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/
 */
public class TheSmallestKNumber {
    public static void main(String[] args) {

    }
    public int[] getLeastNumbers(int[] arr, int k) {
        Arrays.sort(arr);
       return Arrays.copyOfRange(arr,0,k);
    }
}
